/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 0
 * Date: 2023-03-15
 * Time: 14:55
 */


class Dog {
    public String name;
    public int age;
    public String color;

    public void eat() {
        System.out.println("吃饭！");
    }

}

class WashMachine {
    public String brand; // 品牌
    public String type; // 型号
    public double weight; // 重量
    public double length;// 长
    public double width; // 宽
    public double height; // 高
    public String color; // 颜色

    public void washClothes(){// 洗衣服
          System.out.println("洗衣功能");
    }

    public void dryClothes(){ // 脱水
          System.out.println("脱水功能");
    }

    public void setTime(){ // 定时
          System.out.println("定时功能");
    }
}

class Person {
    public String name;
    public int age;

    public void eat() {
        System.out.println(name + " 在吃饭！");
    }
}

public class Test {

    public static void main(String[] args) {
        Person person1 = new Person();
        Person person2 = new Person();
        person1.name = "zhangsan";
        person1.eat();
        System.out.println(person1.name);
        person2.name = "lisi";
        person2.eat();
        System.out.println(person2.name);
    }


    public static void main1(String[] args) {
        WashMachine washmachine1 = new WashMachine();
        WashMachine washmachine2 = new WashMachine();
        WashMachine washmachine3 = new WashMachine();

        washmachine1.brand = "小天鹅";
        System.out.println(washmachine1.brand);
        washmachine2.brand = "大黑鸭";
        System.out.println(washmachine2.brand);
    }
}
